import request from "../utils/request.js"

/**
 * 根据课程 Id 预约 体验课程
 * @param courseId
 * @returns {*}
 */
export function reserveByCourseId(courseId) {
  return request({
    url: '/experience/student/' + courseId,
    method: 'post'
  })
}

/**
 * 根据课程 Id 查询预约状态
 * @param courseId
 * @returns {*}
 */
export function checkReserveByCourseId(courseId) {
  return request({
    url: '/experience/check-course/' + courseId,
    method: 'get'
  })
}

/**
 * 取消预约课程
 * @param courseId
 * @returns {*}
 */
export function cancleReserveByCourseId(courseId) {
  return request({
    url: '/experience/del_' + courseId,
    method: 'get'
  })
}

